package day09API.Exception;

import java.awt.*;
import java.io.FileNotFoundException;
import java.io.IOException;

/**
 * @author DBX
 * @effect 子类重写超类含有throws声明异常抛出的方法时对throws的重写规则
 * @date 2021/8/30 0030 - 14:02
 */
public class ThrowsDemo {
    public void doSome() throws IOException, AWTException{}
}


class SubClass extends ThrowsDemo{
    /*
    * 这里满足子类对父类方法重写规则，两同，两小，一大*/

    public void doSome(){}

    /*@Override
    public void doSome() throws IOException, AWTException {

    }*/

//    public void doSome() throws FileNotFoundException{}

}